import styled from 'styled-components';

export const HomeWrapper = styled.div`
   width: 960px;
   margin: 0 auto;
   overflow: hidden;
`;

export const HomeLeft = styled.div`
   width: 625px;
   float: left;
   margin-left: 15px;
   padding-top: 30px;
   .banner-img{
       width: 625px;
       height: 270px;
   }
`;

export const HomeRight = styled.div`
   width: 280px;
   float: left;
`;

export const TopicWrapper = styled.div`
    overflow: hidden;
    padding: 20px 0 10px 0;
    margin-left: -18px;
    border-bottom: 1px solid #dcdcdc;
`;

export const TopicItem = styled.div`
	float: left;
	height: 32px;
	line-height: 32px;
	margin-left: 18px;
	margin-bottom: 18px;
	padding-right: 10px
	background: #f7f7f7;
	font-size: 14px;
	color: #000;
	border: 1px solid #dcdcdc;
    border-radius: 4px;
    padding-right: 5px;
	.topic-pic {
		display: block;
		float: left;
		width: 32px;
		height: 32px;
		margin-right: 10px;
	}
`;

export const MoreTopic = styled.div`
    color: #535050;
    float: left;
    height: 32px;
    font-size: 14px;
    margin-left: 20px;
    line-height: 32px;
    cursor: pointer;
`;

export const ListItem = styled.div`
	overflow: hidden;
	padding: 20px 0;
	cursor: pointer;
	border-bottom: 1px solid #dcdcdc;
	.pic {
		display: block;
		width: 125px;
		height: 100px;
		float: right;
		border-radius: 10px;
	}
`;

export const ListInfo =	styled.div`
	width: 500px;
	float: left;
	.title {
		line-height: 27px;
		font-size: 18px;
		font-weight: bold;
		color: #333;
	}
	.desc {
		line-height: 24px;
		font-size: 13px;
		color: #999;
	}
`;

export const RecommendWrapper = styled.div`
   width: 280px;
   margin: 30px 0 0 50px;
`;

export const RecommendItem = styled.div`
  width: 280px;
  height: 50px;
  margin-bottom: 10px;
  background: url(${(props) => props.imgUrl});
  background-size: contain;
`;

export const DownLoad = styled.a`
	margin-bottom: 30px;
	padding: 10px 22px;
	width: 270px;
	display: block;
	overflow: hidden;
	box-sizing: border-box;
	border: 1px solid #f0f0f0;
	border-radius: 6px;
	background-color: #fff;
	.qrcode{
		width: 60px;
		height: 60px;
		opacity: .85;
		float: left;
	}
`;

export const DownLoadAll = styled.div`
   float: left;
   font-size: 15px;
   color: #333;
   margin-top: 13px;
   margin-left: 7px;
`;

export const DownLoadContent = styled.p`
   &.anywhere{
	margin-top: 4px;
	font-size: 13px;
	color: #999; 
   }
`;

export const AuthorsWrapper = styled.div`
   width: 270px;
   margin: 30px 0 0 50px;
`;

export const AuthorTitle = styled.div`
  width: 270px;
  overflow: hidden; 
  color: #969696; 
  font-size: 12px;
`;

export const AuthorSwitch = styled.div`
  float: right;
  cursor: pointer;
  .authorSpin{
	  font-size: 12px;
  }
`;

export const AuthorContentList = styled.ul`
  width: 270px;
`;

export const AuthorItem = styled.li`
  width: 270px;
  margin-top: 30px;
`;

export const AuthorImage = styled.div`
	float: left;
	width: 47px;
	height: 47px;
	margin-right: 10px;
	border-radius: 50%;
	overflow: hidden;
	.authorImg{
		width: 100%;
		height: 100%;
	}
`;

export const AuthorName = styled.div`
	padding-top: 5px;
	margin-right: 60px;
	font-size: 14px;
	display: block;
`;

export const AuthorLike = styled.div`
	margin-top: 5px;
	font-size: 12px;
	color: #969696;
`;

export const Attention = styled.div`
	float: right;
	margin-top: 5px;
	padding: 0;
	font-size: 13px;
	color: #42c02e;
`;

export const CheckMoreItem = styled.div`
	margin-bottom: 30px;
	padding: 10px 0;
	width: 270px;
	display: block;
	overflow: hidden;
	text-align: center;
	box-sizing: border-box;
	border: 1px solid #f0f0f0;
	border-radius: 4px;
	background: #f7f7f7;
	font-size: 12px;
	margin-top: 30px;
`;

export const LoadMore = styled.div`
	width: 625px;
	height: 40px;
	line-height: 40px;
	margin: 30px auto 60px;
	text-align: center;
	font-size: 15px;
	border-radius: 20px;
	color: #fff;
	display: block;
	width: 100%;
	background-color: #a5a5a5;
	cursor: pointer;
`;

export const BackTop = styled.div`
   position: fixed;
   right: 30px;
   bottom: 30px;
   width: 60px;
   height: 60px;
   line-height: 60px;
   text-align: center;
   border: 1px solid #ccc;
   font-size: 12px;
   cursor: pointer;
`;